Support new tree-sitter grammar filename format (bug#78754)
authorYuan Fu <casouri@gmail.com>
Wed, 11 Jun 2025 05:55:58 +0000 (22:55 -0700)
committerYuan Fu <casouri@gmail.com>
Wed, 11 Jun 2025 06:46:53 +0000 (23:46 -0700)
commit941158fc133f9722abbca8b89a0a346230b83998
tree46d9df1aacfa19a8ef1382f3a049e9b5488c6020
parent888f846d377a589c6fca5be5d2f4274f423e5fcf
Support new tree-sitter grammar filename format (bug#78754)

Previously Emacs only looks for filenames like
libtree-sitter-json.so.0.0.  Now Emacs also look for filenames
like libtree-sitter-json.so.15.0.

* src/treesit.c:
(treesit_load_language_push_for_each_suffix): Add versioned
candidate to candidate list too.
src/treesit.c